#ifndef __GPIO_CTL_H__
#define __GPIO_CTL_H__
#include "lks32mc08x_sys.h"
#include "hardware_config.h"
/* 开关机io*/
#define  DEV_STATE_GPIO  		 		GPIO3
#define  DEV_STATE_GPIO_Pin  			GPIO_Pin_11
#define  DEVICE_OPEN()    				GPIO_ResetBits(DEV_STATE_GPIO,DEV_STATE_GPIO_Pin)
#define  DEVICE_CLOSED()   				GPIO_SetBits(DEV_STATE_GPIO,DEV_STATE_GPIO_Pin) 

/*预充电io*/
#define  PRE_CHARGE_GPIO  		 			GPIO3
#define  PRE_CHARGE_GPIO_Pin  			    GPIO_Pin_15
#define  PRE_CHARGE_OPEN()    				GPIO_ResetBits(PRE_CHARGE_GPIO,PRE_CHARGE_GPIO_Pin)
#define  PRE_CHARGE_CLOSED()   				GPIO_SetBits(PRE_CHARGE_GPIO,PRE_CHARGE_GPIO_Pin) 
void gpio_ctl_hal_init(void);

uint8_t device_hal_open(void);
uint8_t device_hal_close(void);
#endif 

